package com.dnjn.happiness.emo.webapi.c3v8.in;


import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.TypeReference;
import com.dnjn.happiness.emo.webapi.c3v8.C3v8Client;
import com.dnjn.happiness.emo.webapi.c3v8.out.C3v8Out;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Accessors(chain = true)
@Data
public class PosRecordIn<PostRecordOut> extends C3v8In implements Serializable {

    private String startTime;
    private String endTime;
    private String empNo;
    private Integer secId;

    @Override
    public C3v8Out<PostRecordOut> send() {

        String res = C3v8Client.request("/api/AccessInterface/GetPosRecord",this);
        return JSON.parseObject(res, new TypeReference<C3v8Out<PostRecordOut>>() {
        });

    }
}
